Time multiplexed image data decompression circuit

ABSTRACT

A circuit which uses a compressor to divide each separation image into  8 -line strips, and to independently compress each strip, a single decompressor to decompress two or more color image separations, strip by strip, by interleaving them, and to apply them to two or more print heads, one for each color separation. DMA from a main memory is used to apply both separations to the decompressor, and the decompressor output is demultiplexed into two print heads, one for each separation. This is done to drive each color separation simultaneously in a single-pass color printer. Multiplexing logic controls the DMA into the decompressor and the output of the decompressor into separate buffers for each color separation. Additional logic uses the page and line sync from each print head to synchronize the accessing of the correct image raster from buffers at the output of the decompressor to the associated print head.

BACKGROUND OF THE INVENTION

[0001] Digital color imaging on high-resolution printers such as xerographic printers requires handling large amounts of video data for each page. The color image for each page is typically represented as a set of four color planes, usually cyan, magenta, yellow, and black. For a single-pass printer, the data for each color plane must be presented to the printer at the same time. The actual start of each color plane will be slightly different depending on the position of the imaging stations in the printer.

[0002] It is often desirable to reduce the size of the color images to reduce the amount of solid state memory required to buffer the images, reduce the amount of disk space to store the images, and speed up transfer of the images within the printing system. This is done by compressing the page images after they are generated and decompressing them immediately before they are needed for printing.

[0003] There are a number of different compression schemes to reduce the size of the page images. One such method is to use the lossy or lossless JPEG compression standard. Better compression can be achieved with more complex algorithms such as the separation difference algorithm described by Rabbani in U.S. Pat. No. 5,956,467. Another technique to obtain better compression is to segment the image into regions and use a different compression algorithm for each region. Regardless of the specific technique used to improve the compression, the logic for decompression can become very complex and expensive.

[0004] A single-pass color printer requires the decompressed data for all color planes at the same time. The conventional way to provide decompressed data for each color plane simultaneously is to have a separate copy of the decompression logic for each color plane. This method has a cost disadvantage if the decompression logic is expensive, since the cost of the decompression logic is multiplied by the number of color planes.

[0005] The present invention provides a method of time sharing a single implementation of the decompression logic operating at four times the speed so that decompressed image data is available for all four color planes simultaneously. The present invention accomplishes the time-sharing using a minimal amount of buffering and logic.

[0006] The unit of processing in the decompressor is one strip. A strip is eight scan lines of image data from one color plane. The decompressor will take in the compressed data for one strip, decompress it, and output the raw video data. This requires that the compression operation divide the image data for each separation into independent strips.

[0007] The input to the decompressor must be controlled so that Direct Memory Access (DMA) to the proper strip of the proper color plane is loaded when needed. The output from the decompressor must be directed to the proper buffer. There are separate buffers for each of the four color separations.

[0008] The four color separation images are typically stored in main memory as four complete compressed images, but are needed at different times by the print heads. For example, if the first scan line of the page needs some of each color, but the print heads are separated by a few inches, then each color for the first scan line must be separated by the amount of time that it takes for the leading edge of the paper to travel from one head to the next.

[0009] The common, method of handling this is to have four channels, one for each separation. As the paper arrives at each head, a page sync signal for that separation is generated, and the image is DMAed from memory through a decompressor to a buffer for the associated print head. Since the entire image for each separation is compressed and stored as a single data string, once the decompression is started, it must continue for the entire image. The result is the requirement for four decompressors and image buffers, one for each print head.

[0010] If a single decompressor that operates at four times the data rate needed for each color separation and the single decompressor can be time-shared using multiplexing logic, then the single decompressor can replace four decompressors thus reducing the cost of the printing system.

SUMMARY OF THE INVENTION

[0011] In this process, the first step is to divide each separation image into a number of strips, eight scan lines per strip in the described embodiment. Then each strip is individually compressed before storage in the main memory.

[0012] Then, in use, as the paper travels past each print head, one strip at a time of data from each of the separations is accessed from memory by one decompressor, decompressed, and sent through a multiplexer which divides the single output stream of decompressed data into its four separations, and finally to four buffers, each supplying data to a print head.

[0013] The advantage is that, because the data is divided into strips, one decompressor can be used for all four channels at the same time. The amount of buffering required for each color channel is only two strips. The disadvantages are that the compression ratio is slightly reduced by breaking up the data into independent strips, and that the input to the decompressor must be redesigned to compute the four sets of DMA addresses, and must be fast enough to decompress four channels of data at printer speed. To the extent that this can not be done, it would still be useful to have one decompressor for two channels rather than four. In either case, the loss of compression and additional complexity of the logic controlling the decompressor would be more than offset by being able to use fewer decompressors.

BRIEF DESCRIPTION OF THE DRAWINGS

[0014]FIG. 1 is an overall block diagram of the system.

[0015]FIG. 2 shows the signals between the printer and its interface.

[0016]FIG. 3 is a more detailed block diagram of the decompressor.

[0017]FIG. 4 is a diagram of the compressor devices.

[0018]FIG. 5 shows how the compressed data stream is formatted

[0019]FIG. 6 is an example of generating an image from the compressed data.

DETAILED DESCRIPTION OF THE INVENTION

[0020] As shown in FIG. 4, compressors 81-84 receive image data in the form of four color separations, divide each image into 8-line strips, individually compresses each strip 85 and stores the result 86 in one of four buffers, which could be four parts of the same main memory, each part corresponding to a color separation, cyan, magenta, yellow and black. As shown in FIG. 1, the decompressor 25 can access any one of the four images through a data bus 34-35, by using direct memory access (DMA) as shown by four DMA engines 21-24. The decompressor DMA engines compute the location of a compressed data strip, access it, send it to the decompressor that decompresses it and sends it through the multiplexor 37, to the associated buffer 26-29, where it waits until the interface unit 30-33 requests it. At that point it is sent to the corresponding print head of the image output terminal (IOT). The multiplexing logic 36 controls the DMA engines 21-24 and the multiplexor 37 to route the data to the proper buffer 26-29.

[0021] For timing purposes, each printing head of the IOT generates page and line sync signals as shown in FIG. 2. As the page enters each print head, a page sync signal is generated, and as each scan line is started, a line sync signal is generated. As each line of data is needed, it is supplied by the corresponding interface unit (I/F) 38 to the IOT 39.

[0022] The multiplexing logic 36 of FIG. 1 receives data requests from the buffers 26-29 and makes sure that the data is contained in the buffers 26-29 before it is needed by the IOT. As part of this task, the logic activates the correct DMA engine to bring in the compressed strip from main memory. The multiplexing logic connects the decompressor output to the correct buffer 26-29. The multiplexing logic must arbitrate among the data requests received from the buffers 26-29. The buffer with the highest priority is given the decompressor for the length of time required to decompress one strip. At the end of decompressing the one strip, the multiplexing logic again arbitrates among the data requests from the buffers for the next channel to use the decompressor. The order that the compressed strips are accessed is not predetermined, but is in response to the data requests.

[0023]FIG. 3 is a more detailed diagram of the decompressor. In this system data is transferred in bands of eight scan lines each. A compressed band of data is read from memory through the DMA engine into the decompressor where it is decompressed back into image data. Printing hints are supplied along with the data, and can specify rendering hints such as halftone screens, and whether the desired image is background (lower plane) or overlay (upper plane).

[0024] The parser 41 separates the data into types and supplies the compressed data to the correct channel comprising a FIFO 42-45 and a decompressor 46-49. Each type of data has a decompressor optimized for that type of data. Therefore, a separate decompressor is supplied for rendering hints, upper plane or overlay 46, lower plane or background 49, and selector 48 for selecting between the upper and lower plane. The channels are combined onto one strip at the combiner 50, converted from block to raster format 51, and sent out of the decompressor 25 as shown in FIG. 1.

[0025] The data on the decompressor output is separated into four separations using the demultiplexer circuit 36 of FIG. 1. Normally, it is to be expected that compressed image data from a memory would be in raster order, but in this case, because the data is JPEG decoded, the data is received from memory in 8 by 8 pixel blocks. However, the data still must be sent to the IOT as image separations in raster order. This reordering is done in the block to raster converter 51 in FIG. 3.

[0026] The output of the decompressor is controlled by the multiplexing logic 36, which sends eight consecutive lines to the first buffer 26, then eight to the second buffer 27, etc. Then repeats starting with the first buffer again. There is one buffer for each I/F (i.e., each color separation). The buffers are of sufficient depth to hold a minimum of 16 scanlines of video data and rendering hints. The buffers are loaded 8 lines at a time at a rate of 55 MP/s. The buffers are emptied continuously by the ROS interface at a rate of 13.7 MP/s. The buffers serve two purposes. The first purpose is to provide the buffering necessary to smooth the 8-line burst transfers. The second function is to cover the slight variation of timing between the individual ROS modules. Only valid video data and rendering hints are loaded into the buffers.

[0027] The ROS interface controls the transfer of video data and rendering hints to the printer ROS module. There is a ROS interface for each color separation. A state-machine in each ROS interface controls the transfer of video data and rendering hints based on the Page sync and line sync signals from the printer. The ROS interface generates a return line sync and video clock along with the data. Each of the ROS interfaces is independent.

[0028] The timing of the high-speed byte-wide interface between the decompressor and the four buffers is controlled by the multiplexing logic 36. The function of the multiplexing logic is to transfer scanlines from the decompressor to the buffers and the ROS I/F of the printer. The multiplexing logic is responsible for demultiplexing the video data and rendering hints by routing each input data strip to the proper buffer.

[0029] The interface operates using page request and line request signals driven from the IOT for each color separation. The interface performs a burst transfer of a full scanline of video data and rendering hints for each line request.

[0030] Operation of the decompressor begins with the initialization of the buffers to empty and the reset of the multiplexing logic. The I/F then waits for receipt of a page sync from the K separation of the printer.

[0031] Upon receiving a page sync from the printer K separation, the K buffer 29 generates a data request to the multiplexing logic. The multiplexing logic activates the K DMA. The multiplexer connects the decompressor output to the K buffer. The eight scanlines of video data and rendering hints (one strip) are transferred to the K buffer.

[0032] After eight scanlines of data have been transferred to the K buffer, the multiplexing logic selects the C buffer as the next destination. The C buffer is filled in the same way that the previous buffer was filled The process repeats for the M and Y buffers.

[0033] The multiplexing logic then selects the K FIFO. Scanlines are transferred into the K buffer until another eight scanlines are transferred or there is no room in the buffer. If there is no room in the buffer, the buffer must hold off on sending the data request to the multiplexing logic until there is sufficient room in the buffer.

[0034] The buffers act as averaging buffers for the decompressor as well as buffers to cover the slight variations in timing between the ROS modules. The buffers must be a minimum of 16 scanlines of video data and rendering hints (two strips). Each line is about 5 K pixels. The printer uses 8 bits of video data per pixel and four bits of rendering hint per pixel. Therefore the size of the buffer for each separation must be 80 K×9. The buffer must have an almost full and an almost empty indicator. The almost full indicator must indicate when there is no longer room for one strip. The almost empty indicator must indicate when there is just one scanline in the buffer.

[0035] The buffers are filled at a rate of 55 MP/s and dumped at a rate of 13.7 MP/s. At any given time only one buffer is being filled but all the buffers can and will be dumping simultaneously.

[0036] The interface to the printer is controlled by an output state machine on the printer board. Actually, there are four output. state machines; one for each color separation. Four state machines are required since the four ROS modules operate independently.

[0037] The function of each output state machine is to transfer scanlines from the printer board to the associated ROS module.

[0038] Each printer interface operates using page sync and line sync signals driven to the printer ROS module. The printer board transmits video data and rendering hints, line sync and video clock signals.

[0039] Operation of the printer board begins with the initialization of the FIFO's to empty and the reset of the output state machines. The command and status signals from the decompressor are passed directly through the printer board to the printer.

[0040] A color page is typically composed of 4 or 5 color separations. Each separation is divided into strips of 8 scan lines, and is compressed independently. FIG. 5 depicts the separation, strip and substream structures, and shows the types of decompression algorithms that would be used for a color image.

[0041] The separation structure 61 contains a separation header, a number of strips, and an end-of-separation marker. The separation header contains page related information such as image size, margin information, Q table, and Huffman table which are not considered as part of the data stream. The host communicates this information to the printer as information on how to decompress the data.

[0042] A strip 62 contains multiple substreams and there are as many as four (rendering hints, an upper plane of data, selector instructions, and a lower plane of data). The minimum number is three (rendering hints plus selector and upper or rendering hints plus selector and lower) for a strip that contains JPEG or LZ data only.

[0043] Each substream 63 consists of an ID and a byte count. The ID information is used to tag the incoming data to indicate the data as being one of the four substream types, and the byte count provides the length of the substream data. At the end of each substream, if the byte count is not 32-bit word aligned, padding is inserted to pad it to be word aligned so that the next ID can start on a word boundary. Finally, the substream will be divided into 8 by 8 pixel blocks for compression.

[0044] In FIG. 6, the text or computer graphics image data is decompressed with a lossless algorithm, such as the Lempel Ziv (LZ) variant, and is referred to as the upper (plane) 71. This algorithm compresses data by building up a history of recent data patterns, and trying to find the current data pattern in the history. If there is a match, the pointer to the most recent occurrence is output rather than the data itself. The amount of compression is dependent on the data, and the amount of compression is not adjustable. If the compression is not sufficient, a lossy compression must be used for some parts of the image. The contone image is decompressed with a lossy algorithm and is called the lower plane 73. Within each 8 by 8 pixel block, the combiner 50 receives instruction data from the selector plane 72, and picks one pixel at a time for the output. As described above, each 8 by 8 pixel block is completely assembled in a block buffer 74. The resulting image block uses upper plane 71 for every place where the selector plane 72 has a black pixel and uses the lower plane 73 for every place where the selector plane has a white pixel. When an entire block is assembled, it is transmitted to a band buffer, and when the band buffer contains an entire scan line of blocks, the entire band is sent to the printer.

[0045] There are two additional planes of information in the format. The rendering hints are simply instructions for later hardware blocks on how to print the final image. One simple case would be where the contone should be printed as halftone. Another would be to treat the color as a sweep rather than as a series of lines of gradually differing color. These rendering hints are losslessly compressed and decompressed and simply handed along from one hardware element to the next until they arrive at the point in the system where their function is called for.

[0046] The Selector plane is normally losslessly compressed. However, in case of insufficient compression, this channel cannot use a lossy compressor since no bits of data can be lost. The best that can be done here is to recompress the data again if the original compression does not meet the compression guarantees.

[0047] JPEG compression uses the Discrete Cosine Transform, quantizes the frequency coefficients, reorders them, and then uses Huffman encoding. The DC term is coded as the difference from the previously compressed block. The amount of compression achieved with JPEG is dependent on the imager and the Q (quantization) tables. In this embodiment, four tables are used. One selection switches between Q tables optimized for line-art or for pictorials. The other selection switches between nominal compression and aggressive compression.

[0048] Two kinds of compression are guaranteed in this system, full page and 8-line strip. The full page compression is guaranteed at a ratio of 10:1. This is based on the four planes of data,. and is used to reduce the system capacity requirements of disk storage and disk transfer bandwidth. The 8-line strip requirement is 3.2 to 1 and is based on rates of 8:1 for rendering hints (4-bits per pixel), 12:1 for upper plane (8 bits per pixel), 6:1 for the selector plane (1-bit per pixel), and 7:1 for the lower plane (8-bits per pixel).

[0049] The compression guarantees are enforced at the time the format is generated. If the data in the upper plane does not compress well enough, the data is compressed in the lower plane. If the selector or rendering hint plane does not meet the guarantee, it is simplified and recompressed.

[0050] While the invention has been described with reference to a specific embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the true spirit and scope of the invention. In addition, many modifications may be made without departing from the essential teachings of the invention. 

What is claimed is:
 1. A time multiplexed image data system comprising: dividing a separation image into a plurality of strips wherein each strip is individually compressed; storing each individually compressed strip into main memory; accessing and decompressing from memory by a decompressor one strip at a time of data from each of the separations: and sending through a multiplexer which divides the single output stream of decompressed data into more than one separations for delivery to more than one buffers for supplying data to a print head.
 2. The time multiplexed image data system according to claim 1 further comprising: dividing each separation image into eight scan lines per strip.
 3. The time multiplexed image data system according to claim 1 further comprising: dividing the single output stream of decompressed data into four separations for delivery into four buffers.
 4. The time multiplexed image data system according to claim 3 further comprising: using one decompressor for all four channels at the same time.
 5. The time multiplexed image data system according to claim 1 further comprising: amount of buffering required for each color channel is only two strips.
 6. The time multiplexed image data system according to claim 3 further comprising: computing four sets of DMA addresses by the decompressor.
 7. The time multiplexed image data system according to claim 3 further comprising: decompressing the four channels of data at printer speed.
 8. The time multiplexed image data system according to claim 3 further comprising: using one decompressor for two channels rather than four.
 9. A circuit for decompressing stored compressed image separations to be used to drive a color printer having the same color print head, comprising: a compressor which divides each color separation into strips having a plurality of scan lines, individually compresses each strip and stores each in storage, a single decompressor for receiving, decompressing and outputting in decompressed form the stored compressed images, a multiplexer for selecting and applying to the input of the single decompressor one or more of the stored compressed images, and a demultiplexer for coupling the output of the single decompressor to the print head having the same color as the image separation.
 10. The circuit for decompressing stored compressed image separations according to claim 9 further comprising: decompressing two stored compressed image separations, one of a first color and one of a second color, each to be used to drive the color printer having the same color print head.
 11. The circuit for decompressing stored compressed image separations according to claim 9 further providing a buffer between the decompressor output and each print head.
 12. The circuit for decompressing stored compressed image separations according to claim 9 further comprising logic means responsive to page and line sync signals from each print head for controlling the multiplexer and demultiplexer to couple the image of one color to the print head of the same color.
 13. The circuit for decompressing stored compressed image separations according to claim 9 wherein the image data contains printing hints and an image, and wherein the single decompressor comprises two decompressors, one optimized for printing hints and one optimized for images.
 14. A time multiplexed image data decompression circuit, comprising: a compressor to divide separation images into 8-line strips, and to independently compress each strip; and a single decompressor to decompress two or more color image separations, strip by strip, by interleaving them, and to apply them to two or more print heads, one for each color separation.
 15. The time multiplexed image data decompression circuit according to claim 14, further comprising: direct memory access from a main memory used to apply both separations to the decompressor, wherein decompressor output is demultiplexed into two print heads, one for each separation.
 16. The time multiplexed image data decompression circuit according to claim 15, further comprising: driving each color separation simultaneously in a single-pass color printer.
 17. The time multiplexed image data decompression circuit according to claim 16, further comprising: multiplexing logic controls from the direct memory access into the decompressor.
 18. The time multiplexed image data decompression circuit according to claim 17, further comprising: locating the output of the decompressor into separate buffers for each color separation.
 19. The time multiplexed image data decompression circuit according to claim 18, further comprising: using page and line sync from each print head to synchronize the accessing of the correct image raster from buffers at the output of the decompressor to the associated print head.
 20. The time multiplexed image data decompression circuit according to claim 19, further comprising: using four separate buffers. 